package br.com.lupanar.util;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

import br.com.lupanar.model.BaseModel;
import br.com.lupanar.model.Cliente;
import br.com.lupanar.model.Menina;
import br.com.lupanar.model.Usuario;

public class HibernateUtil {
	
	
	public static void main(String[] args) {
		AnnotationConfiguration cfg = new AnnotationConfiguration();
		
        cfg.addAnnotatedClass(BaseModel.class);  
        cfg.addAnnotatedClass(Cliente.class);
        cfg.addAnnotatedClass(Menina.class);
        cfg.addAnnotatedClass(Usuario.class);
        new SchemaExport(cfg).create(true, true); 
		
	}

}
